<template>
  <!-- 车主明细 -->
  <div>
    <div>
      <span class="discountTest">车主性质</span>
      <el-select v-model="value" placeholder="请选择" @change="changeValue">
        <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"></el-option>
      </el-select>
    </div>
    <LazyLoadTab v-model="activeName" :tabMenus="menus"></LazyLoadTab>
  </div>
</template>
<script>
export default {
  data() {
    return {
      options: [
        {
          value: '11901002',
          label: '个人'
        },
        {
          value: '11901001',
          label: '公司'
        }
      ],
      value: '11901002',
      activeName: '详细信息',
      type: 1,
      menus: [
        {
          title: '详细信息',
          path: 'repair/repairReception/evaluation/owner/adddetail',
          params: {
            type: '11901002'
          }
        },
        {
          title: '车主备注',
          path: 'repair/repairReception/evaluation/owner/addmark',
          params: {}
        }
      ]
    };
  },
  methods: {
    changeValue(val) {
      console.log(val, '111');
      this.type = val;
      this.menus[0].params.type = val;
    }
  }
};
</script>
<style lang="less" scoped></style>
